<template>
  <div id="home">
    home{{msg}}
  </div>
</template>

<script>
export default {
  name: 'Home',
  data(){
    return {
      msg:""
    }
  },
  created(){
    this.$http.get("http://jsonplaceholder.typicode.com/users")
    .then((value)=>{//请求成功直接then返回数据data
      // console.log(value)
      this.msg=value.body;
    })
  }
}
</script>

<style scoped>

</style>
